<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
<style>/* talk list */
.imageshow{float:left;margin-left:20px;height:120px;}
.artZoomBox{display:none;}
</style>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>品购网--你需要的商品信息分享及消费自助网站</title>
        <meta name="Keywords" content="个人用品|办公器材|家居生活|家电数码|汽车天地|品牌印象|个人页面"/>
        <meta name="Description" content="品购网--你需要的商品信息分享及消费自助网站|首页|个人用品|办公器材|家居生活|家电数码|汽车天地|品牌印象|个人页面"/>
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <link href="__PUBLIC__/css/hangye.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/index.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/panel.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/comm.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/ads.css" rel="stylesheet" type="text/css" media=all />
        <script src="__PUBLIC__/js/jquery.js" type="text/javascript"></script>
		<script src="__PUBLIC__/js/jquery.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="__PUBLIC__/js/jquery.colorbox.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/init.js"></script>
        <script src="__PUBLIC__/js/index.js" type="text/javascript"></script>
        <script src="__PUBLIC__/js/comm.js" type="text/javascript"></script>
<!--        <script src="__PUBLIC__/js/imgscorll.js" type="text/javascript"></script>-->
        <script src="__PUBLIC__/js/LanternN.js" type="text/javascript"></script>
<!--        <script>
            $(document).ready(function(){
                $("#slider").TLSlider();
            })

        </script>-->
        <script src="__PUBLIC__/js/jquery.KinSlideshow-1.2.1.min.js" type="text/javascript"></script>
		<script type="text/javascript">
		$(function(){
			$("#KinSlideshow").KinSlideshow();
		})
		</script>
    </head>
    <body>
        <div class="containner">
            
<script src="__PUBLIC__/js/comm.js" type="text/javascript"></script>
<script>

    
    function autologin(){
        $.ajax({
            type: "POST",
            url: "__APP__/Home/Index/doLogin",
            dataType: "json",
            data: "auto",
            success: function(data){
                //alert("Data Loaded: " + data);
                if(data != 0){
                    $('#loginform').html('尊敬的'+data.user_name+'欢迎回来!');
                        $('#loginform1').html('<a href="javascript:;" onclick="logout();"><span>退出</span></a>');
                }
                   
            }
        });
    }

    $(function(){
        bindRegedit('__PUBLIC__/htm/regedit.htm','__APP__/Home/Index/regedit');
        autologin();
        $('#loginBtn').click(function(){
            
            var username = $.trim($('#username').val());
            var password = $.trim($('#password').val());
            var verify = $.trim($('#verify').val());
            if(username.length<1){alert("请填写用户名");return false;}
            if(password.length<1){alert("请填写密码");return false;}
            if(password.verify<1){alert("请填写验证码");return false;}
            $.ajax({
                type: "POST",
                url: "__APP__/Home/Index/doLogin",
                dataType: "json",
                data:   "username="+username+"&password="+password,
                success: function(data){
                    //alert("Data Loaded: " + data);
                    if(data == 0){
                        alert('登陆失败，请重试！');
                    }else if(data == 2){
                    	alert('登陆失败，你的邮箱还未被激活，请激活后再试！');
                    }
                    else{
                    	$('#loginform').html('尊敬的'+data.user_name+'欢迎回来!');
                        $('#loginform1').html('<a href="javascript:;" onclick="logout();"><span>退出</span></a>');
                    }
                }
            });
        });
    });
    function logout(){
        $.get("__APP__/Home/Index/logOut", {},function(){window.location.reload();})
    	$("#login_p").show();
		$("#lio").hide();
	}
</script>
<div id="regeditDiv" style="position:absolute;top:0px;margin:auto;z-index:299"></div>
<div id="header"> 
    <!--上半部分-->
    <div class="header_top">
        <div class="top_menu">
            <ul>
                <li id="loginform">用户名：<input id="username" type="text" size="15" style="height: 12px; width: 80px;"  >&nbsp;
                    密码：<input id="password" size="15" type="password" style="height: 12px; width: 80px;" />
                </li>
                <li class="cart" id="loginform1"><a href="javascript:;" id="loginBtn" ><span>登录</span></a></li>
                <li class="point"><a href="javascript:;" id="regeditBtn"><span>注册</span></a></li>
                <!--<li id="date" class="date">2009年10月6</li>日-->
                <!--<li id="week" class="week">星期</li>二-->
                <!--<li id="time" class="time">8：31</li>-->
                <!--<li id="time_pic" class="time_pic"></li>-->
                <!--农历-->
                <!--<li id="chinese_date" class="chinese_date">四月初六</li>-->
                <!--<span class="solar_terms">小满</span>-->
                <li class="ropmenu_r"></li>
            </ul>
        </div>
        <div class="logo"><a href="#"><img src="__PUBLIC__/images/logo.gif" /></a></div>
        <div class="clear"></div>
    </div>
    <!--end 上半部分--> 
    <!--导航及下半部分-->
    <div class="header_main">
        <div class="menu"> 
            <!--导航-->
            <ul class="menu_list1">
                <li class="menu_list1_r">
                    <ul>
                        <ul>
                            <li class="menu_select"><a href="/">首页</a></li>
                            <li><a href="/Industry/index/id/1">个人用品</a></li>
                            <li><a href="/Industry/index/id/2">办公器材</a></li>
                            <li><a href="/Industry/index/id/3">家居生活</a></li>
                            <li><a href="/Industry/index/id/4">家电数码</a></li>
                            <li><a href="/Industry/index/id/5">汽车天地</a></li>
                            <li><a href="/BaseBrand/">品牌印象</a></li>
                            <li><a href="/User/my/">个人页面</a></li>
                        </ul>
                    </ul>
                </li>
            </ul>
            <!--end 导航--> 
            <!--热门搜索-->
            <!--<?php if($memo != ''): ?><ul class="menu_list2">            
	                <?php echo ($memo); ?>
	            </ul><?php endif; ?>--> 
            
            <!--end 热门搜索--> 
            <!--search-->
            <div class="search" style="width:450px; margin:0px 0px 0px 50px; padding:8px; background:none; color:#fff;">
            <span><?php echo ($industry_explain); ?></span>
            </div>
            <div class="search">
                <div class="search_th">
                    <form action="__APP__/Share/shareList/" name="form1" method="post">
                        <input type="text" name="query" value="<?php echo ($query); ?>" class="text" onclick="this.value='';"/>
                        <button class="" type="submit" onclick="document.form1.submit();">搜 索</button>
                    </form>
                </div>
            </div>
            <!--end search--> 
            <!--快捷按钮-->
            <!-- ul class="menu_list3">
					<li>游客您好，获得更好用户体验请注册或登录！</li>
					<li class="cart"><a href="#"><span>登录</span></a></li>
					<li class="point"><a href="#"><span>注册</span></a></li>
				</ul -->
            <!--end 快捷按钮-->
            <div class="clear"></div>
        </div>
        <div class="header_bottom"><div class="menu"></div></div>
    </div>
    <!--end 导航及下半部分--> 
</div>

            <!--导航结束-->
            <div class="body-center">
                <div class="hot">
                    <div class="hot_tab">
                        <ul  id="hot">
                            <li class="on" tabcontent="qa">流行问答</li>
                            <li tabcontent="livelyshare">活跃分享</li>
                            <li tabcontent="livelyuser">活跃用户</li>
                        </ul>
                    </div>
                    <div id="qa" class="hot_content qa" style="display:block;">
                        <ul class="list">

                            <?php if(is_array($question_info)): $i = 0; $__LIST__ = $question_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$question): ++$i;$mod = ($i % 2 )?><li class="one">
                                    <div class="index"></div>
                                    <div class="schema"><a href="__APP__/Home/Question/show/id/<?php echo ($question["id"]); ?>/"><?php echo (strip_tags(html_entity_decode($question["content"]))); ?></a></div>
                                </li><?php endforeach; endif; else: echo "" ;endif; ?>
                        </ul>
                    </div>
                    <div id="livelyshare" class="hot_content livelyshare" >
                        <ul class="list">
                            <?php if(is_array($share_info)): $i = 0; $__LIST__ = $share_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$share): ++$i;$mod = ($i % 2 )?><li class="one">
                                    <div class="index"></div>
                                    <div class="schema">
                                        <!--<img src="__PUBLIC__/images/aptana.gif" >-->
                                        <a href="__APP__/Home/Share/show/id/<?php echo ($share["id"]); ?>/"><?php echo (strip_tags(html_entity_decode($share["caption"]))); ?></a>
                                        <br/>

                                    </div>
                                </li><?php endforeach; endif; else: echo "" ;endif; ?>

                        </ul>

                    </div>
                    <div id="livelyuser" class="hot_content livelyuser" >
                        <ul class="list">
                            <?php if(is_array($user_info)): $i = 0; $__LIST__ = $user_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$user): ++$i;$mod = ($i % 2 )?><li class="one">
                                    <div class="index"></div>
                                    <div class="schema">
                                        <img src="<?php echo (($user["user_photo"])?($user["user_photo"]):'__ROOT__/Public/images/user_photo.jpg'); ?>" width="50" height="50" >
                                        <span><font color="blue"><?php echo ($user["user_name"]); ?></font></span>
                                        &nbsp;<?php if(($user["type"])  ==  "1"): ?>商家用户<?php endif; ?><?php if(($user["type"])  ==  "0"): ?>个人用户<?php endif; ?>
                                        &nbsp;品购新人
                                    </div>
                                </li><?php endforeach; endif; else: echo "" ;endif; ?>

                        </ul>

                    </div>

                </div>
          <div class="ald1">
            <div id="KinSlideshow" style="visibility:hidden;">
                   <?php if(is_array($ad_info)): $i = 0; $__LIST__ = $ad_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): ++$i;$mod = ($i % 2 )?><a href="<?php echo ($val["url"]); ?>" target="_blank"><img src="__PUBLIC__/<?php echo ($val["img"]); ?>" alt="<a href='<?php echo ($val["url_text"]); ?>'><?php echo ($val["title"]); ?></a>" width="500" height="270" /></a><?php endforeach; endif; else: echo "" ;endif; ?>
              </div>
            </div>

            <div class="pubnotice">
            <div class="ico">
            <img src="__PUBLIC__/images/report.gif">
            <div>公告</div>
            </div>
            <ul>
            <?php if(is_array($notice_info)): $i = 0; $__LIST__ = $notice_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$notice): ++$i;$mod = ($i % 2 )?><li>
            <span class="date"><?php echo (date("Y-m-d",$notice["add_time"])); ?></span>
            <span title="" class="report"><a href="__APP__/Home/Notice/index/id/<?php echo ($notice["id"]); ?>"><?php echo ($notice["title"]); ?></a></span>
            </li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            </div>

<!--韩良君二次开发内容开始-->
    <div id="kept_start">
                      <div id="kept_btk">
        <div id="kept_btk_left"></div>
        <div id="kept_btk_c">
                          <div id="kept_left_zi">什么值得买？</div>
                          <a href="#" class="bl_btn">我要爆料&gt;&gt;</a><div id="pages2"><?php echo ($page2); ?></div> </div>
        <div id="kept_btk_r"></div>
      </div>
                      <?php if(is_array($kept_list)): $i = 0; $__LIST__ = $kept_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$kept): ++$i;$mod = ($i % 2 )?><div class="kept_kong">
                          <div id="content_bt"><a href="/index.php/Home/index/kept_con/id/<?php echo ($kept["id"]); ?>"><?php echo ($kept["title"]); ?></a></div>
                          <div id="content_jie">
            <div id="content_jie_left"><?php echo (date("Y年m月d日",$kept["data"])); ?> <span><?php echo ($kept["user"]); ?></span></div>
            <div id="content_jie_right"><?php echo ($kept["comments"]); ?>条评论</div>
                          </div>
                          
                          <div id="content_xx">
      <?php echo ($kept["con"]); ?>
      </div>
                          
                          
                        </div><?php endforeach; endif; else: echo "" ;endif; ?>
                      <div id="indexpage"><?php echo ($page); ?></div> 
                      
            </div>
    <!--韩良君二次开发内容结束End-->

            <!--排行榜开始-->
            <div class="billboard">
<!--            <div class="head">
            <span class="text">分享帖子排行榜</span>
            </div>-->
            <div style="float:left; width:586px;" class="shop_clist">
                <div class="shop_l_rightbg"></div>
                <div class="more3">&nbsp;</div>
                <div class="sclist_title" style="width: 150px;">分享帖排行榜</div>
            </div>
<div style="clear: both;"></div>
            <div class="billboard_list">
            <?php if(is_array($share_order_info)): $i = 0; $__LIST__ = $share_order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$share): ++$i;$mod = ($i % 2 )?><div class="ranking_content">
            <div class="avatar_div">
            <img src="<?php echo (($share["user"]["user_photo"])?($share["user"]["user_photo"]):'__ROOT__/Public/images/user_photo.jpg'); ?>" width="50" height="50"/>
            </div>
            <div class="text">
            <div class="title">
            <span class="name"><a href="__APP__/Home/Share/show/id/<?php echo ($share["id"]); ?>/"><?php echo (html_entity_decode($share["caption"])); ?></a></span>
            <span style="float: left;"><?php echo (date("Y-m-d",$share["time_add"])); ?></span>
            <span class="people">发布者：<?php echo ($share["user"]["user_name"]); ?></span>

            </div>
            <div class="message">
            浏览：<span class="yellow"><?php echo ($share["count_view"]); ?></span>次   评分：<span class="yellow"><?php echo (intval($share["score"])); ?></span>分
            </div>
            <div class="content">
            <?php echo (strip_tags(html_entity_decode($share["content"]))); ?>
            </div>
            </div>
            </div><?php endforeach; endif; else: echo "" ;endif; ?>


            </div>
            </div>
            <!--排行榜结束			-->
        <!--最新分享开始			-->
            <div id="newSharePanel" class="newshare">
            <div class="newshare_title">
            <span><a href="__APP__/home/Share/shareList">更多>>></a></span>
            </div>
            <div id="shareContent">
            <div class="loading"></div>
            </div>
            </div>
            <!--最新分享结束			-->
        <!--最新提问开始-->
            <div class="newquestion">
            <div class="newquestion_title">
            <span><a href="__APP__/home/Question/">更多>>></a></span>
            </div>
            <div id="questionContent">
            <div id="shareContent">
            <div class="loading"></div>
            </div>
            </div>
            </div>
            </div>
            
     <!--页尾开始-->
      <div class="pagefoot1">
          <span><a href="http://www.360pick.com/about360pick.html">关于品购</a></span>
          <span><a href="http://www.360pick.com/mianzeshengming.html">免责声明</a></span>
          <span><a href="http://www.360pick.com/linkother.html">友情链接</a></span>
          <span><a href="http://www.360pick.com/map.html">网站地图</a></li></span>
          <span><a href="http://www.360pick.com/yijianfankui.html">意见反馈</a></span>
          <span><a href="http://www.360pick.com/contactus.html">联系我们</a></span>
      
          <div class="pagefoot2">
              品购<a>360pick.com</a>版权所有 <a href="http://www.miibeian.gov.cn">津ICP备10200350号</a>
			<script src="http://s17.cnzz.com/stat.php?id=2454650&web_id=2454650"                          language="JavaScript">
            </script>
          </div>
      </div>
      <!--页尾结束-->
            </div>
            </body>
            </html>
            <script>
            $(function(){
            LoadShare('__APP__/Home/Index');
            LoadQuestion('__APP__/Home/Index');
        });

                </script>